Bug 70762 - FAIL: experimental/filesystem/operations/copy.cc execution test on x86_64-apple-darwin1*
Summary: FAIL: experimental/filesystem/operations/copy.cc execution test on x86_64-app...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 7.0
: P3 normal
Target Milestone: 7.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-22 10:13 UTC by Dominique d'Humieres
Modified: 2016-05-26 17:33 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2016-04-22 00:00:00


Attachments
Compressed preprocessed file (129.87 KB, application/x-bzip2)
2016-04-22 14:58 UTC, Dominique d'Humieres
Details
Compressed preprocessed file (130.15 KB, application/x-bzip2)
2016-04-22 15:05 UTC, Dominique d'Humieres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique d'Humieres 2016-04-22 10:13:34 UTC
The test experimental/filesystem/operations/copy.cc fails on darwin with

Assertion failed: (!ec), function test02, file /opt/gcc/work/libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc, line 72.
Comment 1 Jonathan Wakely 2016-04-22 11:11:27 UTC
There's no way I can debug that, someone with an OS X system will have to step through the code.

The alternative, which is quite tempting, is to just disable the filesystem TS on darwin ;)
Comment 2 Dominique d'Humieres 2016-04-22 14:33:21 UTC
The test also fails on armv6-unknown-freebsd11.0, see https://gcc.gnu.org/ml/gcc-testresults/2016-04/msg02071.html.
Comment 3 Dominique d'Humieres 2016-04-22 14:35:14 UTC
Also on i386-unknown-freebsd10.3, see https://gcc.gnu.org/ml/gcc-testresults/2016-04/msg02065.html.
Comment 4 Jonathan Wakely 2016-04-22 14:45:46 UTC
Ah cool, I should be able to reproduce that, thanks.
Comment 5 Dominique d'Humieres 2016-04-22 14:58:37 UTC
Created attachment 38327 [details]
Compressed preprocessed file

Note that the problems are located in the procedures test02 and test03.
Comment 6 Dominique d'Humieres 2016-04-22 15:05:14 UTC
Created attachment 38328 [details]
Compressed preprocessed file

This time with the original test. Compile it with something such as

g++ -L/opt/gcc/build_w/x86_64-apple-darwin15.4.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/x86_64-apple-darwin15.4.0/libstdc++-v3/libsupc++/.libs -D_GLIBCXX_ASSERT -DLOCALEDIR="." -nostdinc++ -std=gnu++11 -lstdc++fs /opt/gcc/build_w/x86_64-apple-darwin15.4.0/libstdc++-v3/testsuite/normal1/libtestc++.a copy.ii

where /opt/gcc/build_w/x86_64-apple-darwin15.4.0/libstdc++-v3/testsuite/normal1/libtestc++.a has been produced during the libstdc++ tests.
Comment 7 Jonathan Wakely 2016-04-24 18:07:26 UTC
Author: redi
Date: Sun Apr 24 18:06:54 2016
New Revision: 235395

URL: https://gcc.gnu.org/viewcvs?rev=235395&root=gcc&view=rev
Log:
libstdc++/70762 fix fallback implementation of nonexistent_path

	PR libstdc++/70762
	* testsuite/util/testsuite_fs.h (__gnu_test::nonexistent_path): Use
	static counter to return a different path on every call.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/util/testsuite_fs.h
Comment 8 Jonathan Wakely 2016-04-24 18:07:44 UTC
Should be fixed at r235395
Comment 9 Jonathan Wakely 2016-05-26 17:18:45 UTC
Author: redi
Date: Thu May 26 17:18:13 2016
New Revision: 236786

URL: https://gcc.gnu.org/viewcvs?rev=236786&root=gcc&view=rev
Log:
libstdc++/70762 fix fallback implementation of nonexistent_path

Backport from mainline
2016-04-24  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/70762
	* testsuite/util/testsuite_fs.h (__gnu_test::nonexistent_path): Use
	static counter to return a different path on every call.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/testsuite/util/testsuite_fs.h
Comment 10 Jonathan Wakely 2016-05-26 17:33:49 UTC
Author: redi
Date: Thu May 26 17:33:17 2016
New Revision: 236788

URL: https://gcc.gnu.org/viewcvs?rev=236788&root=gcc&view=rev
Log:
libstdc++/70762 fix fallback implementation of nonexistent_path

Backport from mainline
2016-04-24  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/70762
	* testsuite/util/testsuite_fs.h (__gnu_test::nonexistent_path): Use
	static counter to return a different path on every call.

Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/testsuite/util/testsuite_fs.h