mirror of git://gcc.gnu.org/git/gcc.git
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. From-SVN: r236788
This commit is contained in:
parent
c54d8841d5
commit
5e652dbf9b
|
|
@ -1,5 +1,12 @@
|
|||
2016-05-26 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
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.
|
||||
|
||||
* testsuite/experimental/filesystem/path/native/string.cc: Add
|
||||
dg-require-filesystem-ts directive.
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,9 @@ namespace __gnu_test
|
|||
p = tmp;
|
||||
#else
|
||||
char buf[64];
|
||||
std::sprintf(buf, "test.%lu", (unsigned long)::getpid());
|
||||
static int counter;
|
||||
std::sprintf(buf, "filesystem-ts-test.%d.%lu", counter++,
|
||||
(unsigned long) ::getpid());
|
||||
p = buf;
|
||||
#endif
|
||||
return p;
|
||||
|
|
|
|||
Loading…
Reference in New Issue