-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Does this issue affect the google-cloud-cpp project? Yes
What component of google-cloud-cpp is this related to? spanner_interval_test
Describe the bug spanner_interval_test fails with the following message:
spanner interval test log
540/574 Test #1076: spanner_interval_test .....................................................***Failed 0.11 sec
Running main() from gmock_main.cc
[==========] Running 9 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 9 tests from Interval
[ RUN ] Interval.RegularSemantics
[ OK ] Interval.RegularSemantics (0 ms)
[ RUN ] Interval.RelationalOperators
[ OK ] Interval.RelationalOperators (0 ms)
[ RUN ] Interval.ArithmeticOperators
[ OK ] Interval.ArithmeticOperators (0 ms)
[ RUN ] Interval.Range
[ OK ] Interval.Range (0 ms)
[ RUN ] Interval.RoundTrip
[ OK ] Interval.RoundTrip (0 ms)
[ RUN ] Interval.MakeIntervalISO8601
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:242: Failure
Expected equality of these values:
*intvl
Which is: P3Y6M4DT12H30M5S
tc.second
Which is: P-3Y-6M-4DT-12H-30M-5S
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:242: Failure
Expected equality of these values:
*intvl
Which is: PT1S
tc.second
Which is: PT-1S
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:242: Failure
Expected equality of these values:
*intvl
Which is: PT1H1M1S
tc.second
Which is: PT-1H-1M-1S
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:242: Failure
Expected equality of these values:
*intvl
Which is: P1Y2M3DT4H5M6S
tc.second
Which is: P-1Y-2M-3DT-4H-5M-6S
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:242: Failure
Expected equality of these values:
*intvl
Which is: P2Y10M19DT23H59M59S
tc.second
Which is: P-2Y-10M-19DT-23H-59M-59S
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:242: Failure
Expected equality of these values:
*intvl
Which is: P-1Y-2M-3DT-4H-5M-6S
tc.second
Which is: P1Y2M3DT4H5M6S
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:270: Failure
Value of: MakeInterval(ec)
Expected: code is equal to INVALID_ARGUMENT and message is anything
Actual: 32-byte object <00-00 00-00 00-00 00-00 F3-FF FF-FF FF-FF FF-FF 00-3E 65-9B AB-FC FF-FF 01-7F DC-84 FF-FF 00-00>, whose status is OK, with a code that isn't equal to INVALID_ARGUMENT, but a message that is anything
/home/builder/package/community/google-cloud-cpp/src/google-cloud-cpp-2.38.0/google/cloud/spanner/interval_test.cc:270: Failure
Value of: MakeInterval(ec)
Expected: code is equal to INVALID_ARGUMENT and message is anything
Actual: 32-byte object <00-00 00-00 00-00 00-00 0D-00 00-00 01-00 00-00 00-C2 9A-64 54-03 00-00 01-E5 91-84 FF-FF 00-00>, whose status is OK, with a code that isn't equal to INVALID_ARGUMENT, but a message that is anything
[ FAILED ] Interval.MakeIntervalISO8601 (0 ms)
To Reproduce Steps to reproduce the behavior:
- execute
ctest
Expected behavior Successful unit test
Operating system: Alpine Linux Edge
What compiler and version are you using?
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-alpine-linux-musl/14.3.0/lto-wrapper
Target: aarch64-alpine-linux-musl
Configured with: /home/buildozer/aports/main/gcc/src/gcc-14.3.0/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=aarch64-alpine-linux-musl --host=aarch64-alpine-linux-musl --target=aarch64-alpine-linux-musl --enable-checking=release --disable-cet --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-languages=c,c++,d,objc,go,fortran,ada --enable-link-serialization=2 --enable-linker-build-id --with-arch=armv8-a --with-abi=lp64 --disable-libquadmath --disable-libssp --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-bugurl=https://gitlab.alpinelinux.org/alpine/aports/-/issues --with-system-zlib --with-linker-hash-style=gnu --with-pkgversion='Alpine 14.3.0'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.3.0 (Alpine 14.3.0)
What version of google-cloud-cpp are you using? 2.38.0
Additional context The values of the expected and the actual results look similar (P3Y6M4DT12H30M5S vs. P-3Y-6M-4DT-12H-30M-5S). May this change come from my environment? If yes which library?
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.