/* Test that openat works.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdio.h>
#include <unistd.h>
+#include "progname.h"
#include "macros.h"
#define BASE "test-openat.t"
}
int
-main (void)
+main (int argc _GL_UNUSED, char *argv[])
{
int result;
+ set_program_name (argv[0]);
+
/* Basic checks. */
result = test_open (do_open, false);
dfd = open (".", O_RDONLY);