Skip to content

Commit

Permalink
Merge pull request #464 from trofi/master
Browse files Browse the repository at this point in the history
tests: fix build failure on gcc-6.3 / glibc-2.25 (open)
  • Loading branch information
Castaglia committed Mar 26, 2017
2 parents 0d97c3e + 1f2b190 commit 9d8d2e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/api/fsio.c
Expand Up @@ -1056,7 +1056,7 @@ START_TEST (fsio_sys_access_file_test) {
array_header *suppl_gids;

/* Make the file to check; we want it to have perms 664.*/
fd = open(fsio_test_path, O_CREAT|O_EXCL|O_WRONLY);
fd = open(fsio_test_path, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
fail_if(fd < 0, "Unable to create file '%s': %s", fsio_test_path,
strerror(errno));

Expand Down
4 changes: 2 additions & 2 deletions tests/api/scoreboard.c
Expand Up @@ -265,7 +265,7 @@ START_TEST (scoreboard_lock_test) {
fail_unless(errno == EBADF, "Expected EBADF (%d), got %s (%d)", EBADF,
strerror(errno), errno);

fd = open(test_file2, O_CREAT|O_EXCL|O_RDWR);
fd = open(test_file2, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
fail_unless(fd >= 0, "Failed to open '%s': %s", test_file2, strerror(errno));

res = pr_lock_scoreboard(fd, lock_type);
Expand Down Expand Up @@ -909,7 +909,7 @@ START_TEST (scoreboard_entry_lock_test) {
fail_unless(errno == EBADF, "Expected EBADF (%d), got %s (%d)", EBADF,
strerror(errno), errno);

fd = open(test_file2, O_CREAT|O_EXCL|O_RDWR);
fd = open(test_file2, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
fail_unless(fd >= 0, "Failed to open '%s': %s", test_file2, strerror(errno));

res = pr_scoreboard_entry_lock(fd, lock_type);
Expand Down

0 comments on commit 9d8d2e6

Please sign in to comment.