diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-11-21 14:33:35 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-11-21 14:33:35 -0800 |
| commit | c9f3e1eeb95160bd690fe37636e732421543bd13 (patch) | |
| tree | 43ffde49c9d0868e58aff6d41f582b2b813e8e58 /tests/files.c | |
| parent | dd7fc872b92b179b1f910ea371016865ff4319eb (diff) | |
| download | nng-c9f3e1eeb95160bd690fe37636e732421543bd13.tar.gz nng-c9f3e1eeb95160bd690fe37636e732421543bd13.tar.bz2 nng-c9f3e1eeb95160bd690fe37636e732421543bd13.zip | |
Fixes for Circle environment.
The test suites run as root inside docker (?), so the files permission
test needs to be skipped.
Circle, like Travis, lacks support correct IPv6. I think this is because
of basic deficiency in Amazon's EC2 product. Come on Amazon, it's 2017,
you have to support IPv6!
Diffstat (limited to 'tests/files.c')
| -rw-r--r-- | tests/files.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/files.c b/tests/files.c index c7e6a1dd..6e9e5564 100644 --- a/tests/files.c +++ b/tests/files.c @@ -33,6 +33,9 @@ test_permissions(void) temp = nni_plat_temp_dir(); So(temp != NULL); file = nni_plat_join_dir(temp, "nng_files_perms_test"); + if (geteuid() == 0) { + ConveySkip("Cannot test permissions as root"); + } So(nni_plat_file_put(file, "abc", 4) == 0); Reset({ nni_plat_file_delete(file); |
