Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test 12 (util) Failing on Windows #6900

Open
@learn-sid-edu

Description

@learn-sid-edu

Reproduction steps

README.md

Expected behavior

There should be no failing tests when you build an unmodified source tree from a [release](https://github.com/libgit2/libgit2/releases), or from the [main branch](https://github.com/libgit2/libgit2/tree/main). Please contact us or [open an issue](https://github.com/libgit2/libgit2/issues) if you see test failures.

Actual behavior

12: posix......
12: pqueue.....'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a07432'
12: CMD.EXE was started with the above path as the current directory.
12: UNC paths are not supported.  Defaulting to Windows directory.
12:
12: process::env.'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a07432'
12: CMD.EXE was started with the above path as the current directory.
12: UNC paths are not supported.  Defaulting to Windows directory.
12: .'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a07432'
12: CMD.EXE was started with the above path as the current directory.
12: UNC paths are not supported.  Defaulting to Windows directory.
12: .'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a07432'
12: CMD.EXE was started with the above path as the current directory.
12: UNC paths are not supported.  Defaulting to Windows directory.
12: F'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a07432'
12: CMD.EXE was started with the above path as the current directory.
12: UNC paths are not supported.  Defaulting to Windows directory.
12:
12: process::start..'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a07432'
12: CMD.EXE was started with the above path as the current directory.
12: UNC paths are not supported.  Defaulting to Windows directory.
12: ...
12: process::win32....
12: zstream....
12:
12:   1) Failure:
12: process::env::can_clear_env [D:\Apps\Fritzing Entirity\libgit2-1.8.1\tests\util\process\env.c:52]
12:   0 != result.exitcode
12:   0 != 1
12:
12/12 Test #12: util .............................***Failed    4.61 sec

92% tests passed, 1 tests failed out of 12

Total Test time (real) = 1169.06 sec

The following tests FAILED:
         12 - util (Failed)
Errors while running CTest
Output from these tests are in: D:/Apps/Fritzing Entirity/libgit2-1.8.1/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

After rebuilding after removing space from parent directory name,

PS D:\Apps\FritzingEntirity\libgit2-1.8.1\build> ctest -R util
Test project D:/Apps/FritzingEntirity/libgit2-1.8.1/build
    Start 12: util
1/1 Test #12: util .............................***Failed    4.05 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   4.06 sec

The following tests FAILED:
         12 - util (Failed)
Errors while running CTest
Output from these tests are in: D:/Apps/FritzingEntirity/libgit2-1.8.1/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
PS D:\Apps\FritzingEntirity\libgit2-1.8.1\build> ctest --rerun-failed --output-on-failure
Test project D:/Apps/FritzingEntirity/libgit2-1.8.1/build
    Start 12: util
1/1 Test #12: util .............................***Failed    4.03 sec
Loaded 54 suites:
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')

alloc....
array.
assert.....
bitvec.
copy...
dirent.........
encoding..
errors.......
filebuf............
ftruncateSS
futils...S
gitstr..........................
hex.
hostname.
iconv...
init...
integer...
link..SSSSSSSSS....SS....SSS
memmem...
mkdir......
path::core.................................
path::win32.............
pool...
posix......
pqueue.....'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a30044'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

process::env.'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a30044'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
.'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a30044'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
.'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a30044'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
F'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a30044'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

process::start..'\\?\C:\Users\siddh\AppData\Local\Temp\libgit2_tests_a30044'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
...
process::win32....
qsort......
regexp.SSS.........
rmdir.....
sha1...
sha256....
sortedcache...
stat..
str::basic...
str::oom...
str::percent..
str::quote...
str::splice.........
string........
strmap...........
strtol........
url::http.................................................
url::joinpath......
url::parse......................................................
url::pattern..
url::redirect...........
url::scp.....................
url::valid.
utf8.
vector..........
wildmatch........
zstream....

  1) Failure:
process::env::can_clear_env [D:\Apps\FritzingEntirity\libgit2-1.8.1\tests\util\process\env.c:52]
  0 != result.exitcode
  0 != 1



0% tests passed, 1 tests failed out of 1

Total Test time (real) =   4.05 sec

The following tests FAILED:
         12 - util (Failed)
Errors while running CTest
PS D:\Apps\FritzingEntirity\libgit2-1.8.1\build>

D:/Apps/FritzingEntirity/libgit2-1.8.1/build/Testing/Temporary/LastTest.log :

12:util

Version of libgit2 (release number or SHA1)

libgit2 v1.8.1

Operating system(s) tested

Edition Windows 11 Home Single Language
Version 23H2
Installed on ‎05-‎02-‎2023
OS build 22631.4169
Experience Windows Feature Experience Pack 1000.22700.1034.0

Windows PowerShell

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions