-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DirectoryTreeTest fails when trying to build 1.0.51 with cmake #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm getting the same error with 1.0.58 (on Centos 7 with gcc 4.9.1) [ RUN ] DirectoryTreeTest.TestManualDirectoryTraversal |
I just pushed a branch with some minor fixes. Can you pull it down and try? I haven't been able to reproduce on my side yet. Branch name is 'DirectoryTreeFixes' |
Thanks for the fixes....but unfortunately, same result. If there is anything I can do to give you more info, please let me know. [----------] 5 tests from DirectoryTreeTest |
is this running from the branch I sent, some of those assertions should be unreachable with my updates. I haven't been able to replicate.
…Sent from my iPhone
On Feb 1, 2017, at 12:42 PM, John Scholvin ***@***.***> wrote:
Thanks for the fixes....but unfortunately, same result. If there is anything I can do to give you more info, please let me know.
[----------] 5 tests from DirectoryTreeTest
[ RUN ] DirectoryTreeTest.TestManualDirectoryTraversal
/home/scholvin/3p/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:140: Failure
Value of: dir2Entry.fileType
Actual: 4-byte object <01-00 00-00>
Expected: Aws::FileSystem::FileType::Directory
Which is: 4-byte object <03-00 00-00>
/home/scholvin/3p/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:112: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c_str())
Actual: false
Expected: true
[ FAILED ] DirectoryTreeTest.TestManualDirectoryTraversal (1 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal
/home/scholvin/3p/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:174: Failure
Value of: paths.empty()
Actual: false
Expected: true
/home/scholvin/3p/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:112: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c_str())
Actual: false
Expected: true
[ FAILED ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal (0 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator
terminate called after throwing an instance of 'std::ios_base::failure'
what(): basic_filebuf::underflow error reading the file
/bin/sh: line 1: 48222 Aborted (core dumped) ./aws-cpp-sdk-core-tests
make[2]: *** [aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests] Error 134
make[2]: *** Deleting file `aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests'
make[1]: *** [aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/all] Error 2
make: *** [all] Error 2
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hmm, should be. Here's what I did, starting with a clean work area: git clone https://github.com/aws/aws-sdk-cpp.git |
Ok, this won't fix it, but I'll get a log this way. I had to redo the memory testing to make logging not segfault out the tests. Can you pull and try again? There will be a trace-level log in the directory you run the test from. Can you upload it here? |
Unfortunately, I can't verify this fix until you can break it for me. Try as I may, I can't get it to break. I just tried again on master for 4.4.41-36.55.amzn1.x86_64 which should be basically identical to your setup: $ /usr/local/bin/cmake -DBUILD_ONLY="core" ../aws-sdk-cpp [----------] 1 test from ProfileConfigFileAWSCredentialsProviderTest [----------] 5 tests from EnvironmentModifyingTest [----------] 4 tests from InstanceProfileCredentialsProviderTest [----------] 5 tests from AWSConfigFileProfileConfigLoaderTest [----------] 3 tests from EC2InstanceProfileConfigLoaderTest [----------] 2 tests from AWSClientTest [----------] 2 tests from AWSErrorMashallerTest [----------] 2 tests from HttpSchemeMapperTest [----------] 1 test from HttpMethodMapperTest [----------] 8 tests from URITest [----------] 10 tests from DateTimeTest [----------] 2 tests from EnumOverflowTest [----------] 3 tests from FileTest [----------] 5 tests from DirectoryTreeTest [----------] 1 test from GetTheLightsTest [----------] 8 tests from HashingUtilsTest [----------] 1 test from OSVersionInfoTest [----------] 17 tests from StringUtilsTest [----------] 3 tests from UUIDTest [----------] 19 tests from CryptoStreamsTest [----------] 7 tests from AES_CBC_TEST [----------] 4 tests from AES_CTR_TEST [----------] 6 tests from AES_GCM_TEST [----------] 6 tests from AES_KeyWrap_Test [----------] 16 tests from JsonSerializerTest [----------] 11 tests from PreallocatedStreamBufTest [----------] 4 tests from XmlSerializerTest [----------] 6 tests from LoggingTest [----------] 7 tests from MemoryTest [----------] 11 tests from DefaultRateLimitTest [----------] Global test environment tear-down |
This was on the master branch so without my updates. If you can send me a log for a failed test run from your machine, then I can probably see what the problem is from there. |
Still failing in the same place. Log file contents: [INFO] 2017-02-01 21:08:17 CurlHttpClient [140202735622208] Initializing Curl library [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;my-header1;my-header2;x-amz-date host:example.amazonaws.com host;my-header1;my-header2;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:08:17 AWSAuthV4Signer [140202735622208] Signed Headers value:host;x-amz-date host;x-amz-date [INFO] 2017-02-01 21:08:18 Aws::Config::AWSProfileConfigLoader [140202735622208] Failed to reload configuration. [INFO] 2017-02-01 21:08:18 Aws::Config::AWSProfileConfigLoader [140202735622208] Failed to reload configuration. |
can you wipe /tmp and try again? |
[INFO] 2017-02-01 21:21:37 CurlHttpClient [140218730678336] Initializing Curl library [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;my-header1;my-header2;x-amz-date host:example.amazonaws.com host;my-header1;my-header2;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:21:37 AWSAuthV4Signer [140218730678336] Signed Headers value:host;x-amz-date host;x-amz-date [INFO] 2017-02-01 21:21:38 Aws::Config::AWSProfileConfigLoader [140218730678336] Failed to reload configuration. [INFO] 2017-02-01 21:21:38 Aws::Config::AWSProfileConfigLoader [140218730678336] Failed to reload configuration. |
did you wipe /tmp? "Creation of directory /tmp/dir1 returned code: 17" this error code seems to think some directories are there that shouldn't be. |
Maybe some previous test isn't cleaning up after itself? Ran it again: 5457 $ ls -la /tmp [----------] 1 test from ProfileConfigFileAWSCredentialsProviderTest [----------] 5 tests from EnvironmentModifyingTest [----------] 4 tests from InstanceProfileCredentialsProviderTest [----------] 5 tests from AWSConfigFileProfileConfigLoaderTest [----------] 3 tests from EC2InstanceProfileConfigLoaderTest [----------] 2 tests from AWSClientTest [----------] 2 tests from AWSErrorMashallerTest [----------] 2 tests from HttpSchemeMapperTest [----------] 1 test from HttpMethodMapperTest [----------] 8 tests from URITest [----------] 10 tests from DateTimeTest [----------] 2 tests from EnumOverflowTest [----------] 3 tests from FileTest [----------] 5 tests from DirectoryTreeTest Log: [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;my-header1;my-header2;x-amz-date host:example.amazonaws.com host;my-header1;my-header2;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;my-header1;x-amz-date host:example.amazonaws.com host;my-header1;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host:example.amazonaws.com host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host;x-amz-date [DEBUG] 2017-02-01 21:31:11 AWSAuthV4Signer [140144055027776] Signed Headers value:host;x-amz-date host;x-amz-date [INFO] 2017-02-01 21:31:12 Aws::Config::AWSProfileConfigLoader [140144055027776] Failed to reload configuration. [INFO] 2017-02-01 21:31:12 Aws::Config::AWSProfileConfigLoader [140144055027776] Failed to reload configuration. |
Hmmmm.... "Deleting file: /tmp/dir1/dir2 That's weird we don't try and delete unless it is marked as a file. That is very odd. Maybe the POSIX api is different between Debian and Red Hat? I'll keep digging here. |
though it worked fine on amazon linux Are you running this as sudo? Can you try it as a normal user? |
No, I'm running it as me, normal user. And I appreciate you digging into this so hard. More info, if it helps: 5461 $ uname -a 5452 $ mount | grep " / " |
for sanity test, can you set $HOME to something that is on your normal file system. Maybe /home/yourName and rerun? Perhaps /tmp is read-only, or sym linked or something. |
It's already set: |
then why is this hitting tmp?
…Sent from my iPhone
On Feb 1, 2017, at 6:51 PM, John Scholvin ***@***.***> wrote:
It's already set:
5453 $ echo $HOME
/home/scholvin
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
from the log:
Checking HOME for the home directory.
[DEBUG] 2017-02-01 21:31:12 FileSystemUtils [140144055027776] Environment value for variable HOME is /tmp/
…Sent from my iPhone
On Feb 1, 2017, at 6:51 PM, John Scholvin ***@***.***> wrote:
It's already set:
5453 $ echo $HOME
/home/scholvin
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is make doing something stupid? How can I run the test harness outside of it? |
make should be running as the user it was invoked as. |
it's doing it on my amazon linux instance too. But my tmp dir is mounted as part of my ebs volume so there aren't any issues. |
Rephrasing: the makefile generates the test app, runs it, then deletes app on failure. (possibly on success.) How can I get make to just generate the app, and then I run it myself to isolate the environment from any alterations make might try? |
It's already there, you can run it manually. It shouldn't be deleting it. |
[ FAILED ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal (0 ms) |
But, you can delete the launch in the aws-cpp-sdk-core-tests/CMakeLists.txt file (it's towards the bottom of the file). |
doesn't make a difference when I do it though. |
Yeah, same result when running it by hand here, too. Problem with the getenv() mechanism? |
I don't know but that will actually break the ProfileCredentialsFile provider.... hopefully this is in EC2. |
I gotta sign off for tonight. Will try on my personal AWS linux instance tomorrow, but I expect it'll work. Thanks for your help so far. |
I suspect this is being caused by the AT_SECURE coming up from the kernel.... |
Maybe. I know we have selinux disabled. And it looks like the API uses generic getenv anyway. I'll try to catch this in gdb tomorrow. 5458 $ find . -type f | xargs egrep getenv | grep -v ^Binary |
Remember that bash bug last year? It makes me suspicious that this was the fix. Im about to email every cpp dev at amazon, someone will know.
…Sent from my iPhone
On Feb 1, 2017, at 7:19 PM, John Scholvin ***@***.***> wrote:
Maybe. I know we have selinux disabled. And it looks like the API uses generic setenv anyway. I'll try to catch this in gdb tomorrow.
5458 $ find . -type f | xargs egrep getenv | grep -v ^Binary
./aws-cpp-sdk-core/source/platform/windows/Environment.cpp:using std::getenv generates a warning on windows so we use _dupenv_s instead. The character array returned by this function is our responsibility to clean up, so rather than returning raw strings
./aws-cpp-sdk-core/source/platform/android/Environment.cpp: auto value = getenv(name);
./aws-cpp-sdk-core/source/platform/linux-shared/Environment.cpp: auto variableValue = std::getenv(variableName);
./aws-cpp-sdk-core/include/aws/core/platform/Environment.h: * shim for getenv
./testing-resources/include/aws/external/gtest.h: const char* const env = getenv(name);
./testing-resources/include/aws/external/gtest.h: return getenv(name);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Something in the test apparatus is overriding $HOME. Breakpoint 4, 0x00007ffff5df0a70 in setenv () from /lib64/libc.so.6 and now I really have to check out. Talk to you tomorrow. |
ah I forgot about that haha. Its in the test fixture setup. I thought it was only for android though.... curious.
…Sent from my iPhone
On Feb 1, 2017, at 7:47 PM, John Scholvin ***@***.***> wrote:
Something in the test apparatus is overriding $HOME.
Breakpoint 4, 0x00007ffff5df0a70 in setenv () from /lib64/libc.so.6
(gdb) print (char*)$rdi
$18 = 0x7ffff7bbe8ec "HOME"
(gdb) where
#0 0x00007ffff5df0a70 in setenv () from /lib64/libc.so.6
#1 0x00007ffff7bbe62d in Aws::Environment::SetEnv (name=0x7ffff7bbe8ec "HOME", value=0x7c9118 "/tmp/", overwrite=1) at /home/scholvin/3p/aws-sdk-cpp/testing-resources/source/platform/linux-shared/PlatformTesting.cpp:27
#2 0x00007ffff7b95bc2 in Aws::Testing::RedirectHomeToTempIfAppropriate () at /home/scholvin/3p/aws-sdk-cpp/testing-resources/source/TestingEnvironment.cpp:40
#3 0x00000000004d68e6 in main (argc=1, argv=0x7fffffffe4f8) at /home/scholvin/3p/aws-sdk-cpp/aws-cpp-sdk-core-tests/RunTests.cpp:27
and now I really have to check out. Talk to you tomorrow.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
At some point, this changed. It wasn't me and I thought it was only Android we did this for, but here ya go: if(PLATFORM_WINDOWS) And it's used in aws-cpp-sdk-core-tests/RunTests.cpp line 27. Good catch. |
Ok, let's try this: cmake -DBUILD_ONLY="core" -DCMAKE_CXX_FLAGS="-DDISABLE_HOME_DIR_REDIRECT=1" ../aws-sdk-cpp |
That worked for me. |
Wish we had found that before I emailed all of my colleagues looking like an idiot ;=) Hopefully it will work this time. |
Good news; this worked! I have a new problem now which I'll take to another thread. Thanks for all your help. |
I'm still troubled by the existence of this problem. I added some additional logging. Any chance you can pull down the latest of that branch, and run the tests again without the CXX arg we added? |
Sure. I ran it with just the DirectoryTreeTest to cut down the noise; if you need the full run, let me know. 5803 $ ./aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests --gtest_filter=DirectoryTreeTest Log: [INFO] 2017-02-02 17:22:38 CurlHttpClient [139732520699968] Initializing Curl library |
aha! [DEBUG] 2017-02-02 17:22:38 FileSystemUtils [139732520699968] file dir2 type 0 Found it! Now I need to figure out why posix is lying to us. Can you post the contents of /etc/fstab? |
That resolves to DT_UNKNOWN instead of DT_DIR, which is causing the problem And in addition to /etc/fstab, any info on how /tmp is mounted would be helpful. |
Wait if I remember right this is XFS? The one commonly used file system in the world that doesn't set the d_type flag? |
"Other than Linux, the d_type field is available mainly only on BSD systems. This field makes it possible to avoid the expense of calling lstat(2) if further actions depend on the type of the file. If the _BSD_SOURCE feature test macro is defined, then glibc defines the following macro constants for the value returned in d_type: DT_BLK DT_CHR This is a character device. DT_DIR This is a directory. DT_FIFO This is a named pipe (FIFO). DT_LNK This is a symbolic link. DT_REG This is a regular file. DT_SOCK This is a UNIX domain socket. DT_UNKNOWN The file type is unknown. If the file type could not be determined, the value DT_UNKNOWN is returned in d_type. from: |
Ok, give the latest push a try, it should work now. |
Great find! That got it. But there's good news and bad news. Good news is you fixed that one, but now something else broke. Output from the test harness: 6135 $ aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests --gtest_filter=DirectoryTreeTest [----------] Global test environment tear-down 2 FAILED TESTS Log: [INFO] 2017-02-02 19:04:27 CurlHttpClient [139982339917888] Initializing Curl library |
wipe /tmp one more time, thats from the previous failed run.
…Sent from my iPhone
On Feb 2, 2017, at 4:06 PM, John Scholvin ***@***.***> wrote:
Great find! That got it. But there's good news and bad news. Good news is you fixed that one, but now something else broke. Output from the test harness:
6135 $ aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests --gtest_filter=DirectoryTreeTest
Note: Google Test filter = DirectoryTreeTest
[==========] Running 5 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 5 tests from DirectoryTreeTest
[ RUN ] DirectoryTreeTest.TestManualDirectoryTraversal
[ OK ] DirectoryTreeTest.TestManualDirectoryTraversal (1 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal
[ OK ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal (1 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator
/home/scholvin/3p/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:183: Failure
Value of: Aws::FileSystem::DeepCopyDirectory(dir1.c_str(), comparisonDirectory.c_str())
Actual: false
Expected: true
[ FAILED ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator (2 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeDiff
/home/scholvin/3p/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:193: Failure
Value of: Aws::FileSystem::DeepCopyDirectory(dir1.c_str(), comparisonDirectory.c_str())
Actual: false
Expected: true
[ FAILED ] DirectoryTreeTest.TestDirectoryTreeDiff (1 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversal
[ OK ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversal (2 ms)
[----------] 5 tests from DirectoryTreeTest (7 ms total)
[----------] Global test environment tear-down
[==========] 5 tests from 1 test case ran. (7 ms total)
[ PASSED ] 3 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator
[ FAILED ] DirectoryTreeTest.TestDirectoryTreeDiff
2 FAILED TESTS
Log:
[INFO] 2017-02-02 19:04:27 CurlHttpClient [139982339917888] Initializing Curl library
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Checking HOME for the home directory.
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Environment value for variable HOME is /tmp/
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Final Home Directory is /tmp/
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1 returned code: 2
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1/dir2 returned code: 2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/dir2/file2 Returned error code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1/dir2 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/file1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Checking HOME for the home directory.
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Environment value for variable HOME is /tmp/
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Final Home Directory is /tmp/
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1 returned code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1/dir2 returned code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/dir2/file2 Returned error code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1/dir2 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/file1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Checking HOME for the home directory.
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Environment value for variable HOME is /tmp/
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Final Home Directory is /tmp/
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1 returned code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1/dir2 returned code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Checking HOME for the home directory.
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Environment value for variable HOME is /tmp/
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Final Home Directory is /tmp/
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/compDir
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/compDir returned code: 17
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/compDir
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/compDir
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/compDir/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/compDir/dir2 returned code: 17
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/dir2/file2 Returned error code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1/dir2 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/file1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Checking HOME for the home directory.
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Environment value for variable HOME is /tmp/
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Final Home Directory is /tmp/
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1 returned code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1/dir2 returned code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Checking HOME for the home directory.
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Environment value for variable HOME is /tmp/
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Final Home Directory is /tmp/
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/compDir
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/compDir returned code: 17
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/compDir
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/compDir
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/compDir/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/compDir/dir2 returned code: 17
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/dir2/file2 Returned error code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1/dir2 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/file1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Checking HOME for the home directory.
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Environment value for variable HOME is /tmp/
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Final Home Directory is /tmp/
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1 returned code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creating directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Creation of directory /tmp/dir1/dir2 returned code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type directory detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 18
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1/dir2
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] skipping . or ..
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/dir2/file2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/dir2/file2 Returned error code: 0
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1/dir2
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1/dir2 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Calling stat on path /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] type file detected
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] file size detected as 11
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting file: /tmp/dir1/file1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of file: /tmp/dir1/file1 Returned error code: 0
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Entering directory /tmp/dir1
[TRACE] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Successfully opened directory /tmp/dir1
[INFO] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deleting directory: /tmp/dir1
[DEBUG] 2017-02-02 19:04:27 FileSystemUtils [139982339917888] Deletion of directory: /tmp/dir1 Returned error code: 0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yep, that got it. Nicely done! Thanks for all your help. BTW, you asked for /etc/fstab earlier. Looks like xfs is the culprit. And it worked on /home which is ext4. UUID=dd8f0afe-5a00-40ff-b538-5fa0a351cdba / xfs defaults 0 0 |
I merged the changes over. They should be available in an hour or so after our CI runs. |
just pushed. Thanks for your help and patience! |
Thanks for everything, Jonathan. Great work. |
I get the following error when trying to build with cmake...
[ RUN ] DirectoryTreeTest.TestManualDirectoryTraversal
/home/cugarte/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:140: Failure
Value of: dir2Entry.fileType
Actual: 4-byte object <01-00 00-00>
Expected: Aws::FileSystem::FileType::Directory
Which is: 4-byte object <03-00 00-00>
[ FAILED ] DirectoryTreeTest.TestManualDirectoryTraversal (0 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal
/home/cugarte/aws-sdk-cpp/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:174: Failure
Value of: paths.empty()
Actual: false
Expected: true
[ FAILED ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal (0 ms)
[ RUN ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator
terminate called after throwing an instance of 'std::ios_base::failure'
what(): basic_filebuf::underflow error reading the file
/bin/sh: line 1: 33474 Aborted (core dumped) ./aws-cpp-sdk-core-tests
make[2]: *** [aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests] Error 134
make[2]: *** Deleting file `aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests'
make[1]: *** [aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: