FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[[ Bug ]] Fix failing LCB varargs test on Linux by runrevmark · Pull Request #7024 · livecode/livecode · GitHub

This repository was archived by the owner on Aug 31, 2021. It is now read-only.
/ livecode Public archive

[[ Bug ]] Fix failing LCB varargs test on Linux - #7024

Merged
runrevmark merged 1 commit into
livecode:develop-9.0from
runrevmark:bug-fix_lcb_varargs_test
May 10, 2019
Merged

[[ Bug ]] Fix failing LCB varargs test on Linux#7024
runrevmark merged 1 commit into
livecode:develop-9.0from
runrevmark:bug-fix_lcb_varargs_test

Conversation

Copy link
Copy Markdown
Contributor

This patch fixes the LCB varargs tests on Linux. The test was failing
due to the assumption that the %p printf format would render a nullptr
as 0x0 as it does on macOS - this was an incorrect assumption.

To resolve this, the varargs tests have been restructured, with the
nullptr test being separated out. Rather than check for a specific
output string, it just checks it begins with the known string (the
issue was a crash, so the only thing which needs to be checked is
that the crash doesn't happen!).

This patch fixes the LCB varargs tests on Linux. The test was failing
due to the assumption that the %p printf format would render a nullptr
as 0x0 as it does on macOS - this was an incorrect assumption.

To resolve this, the varargs tests have been restructured, with the
nullptr test being separated out. Rather than check for a specific
output string, it just checks it begins with the known string (the
issue was a crash, so the only thing which needs to be checked is
that the crash doesn't happen!).
runrevmark added the bug label May 10, 2019
runrevmark added this to the 9.0.5-rc-1 milestone May 10, 2019

Copy link
Copy Markdown
Contributor

@livecode-vulcan review ok 9727a9b

Copy link
Copy Markdown
Contributor

💙 review by @montegoulding ok 9727a9b

livecode-vulcan added a commit that referenced this pull request May 10, 2019
[[ Bug ]] Fix failing LCB varargs test on Linux

This patch fixes the LCB varargs tests on Linux. The test was failing
due to the assumption that the %p printf format would render a nullptr
as 0x0 as it does on macOS - this was an incorrect assumption.

To resolve this, the varargs tests have been restructured, with the
nullptr test being separated out. Rather than check for a specific
output string, it just checks it begins with the known string (the
issue was a crash, so the only thing which needs to be checked is
that the crash doesn't happen!).

Copy link
Copy Markdown
Contributor

😎 test success 9727a9b

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-sdk26_ndk16r15: success
  • try-community-arm64-android-sdk26_ndk16r15: success
  • try-community-x86-android-sdk26_ndk16r15: success
  • try-community-x86_64-android-sdk26_ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos12.1: success
  • try-community-universal-ios-iphonesimulator12.1: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

runrevmark merged commit 492133e into livecode:develop-9.0 May 10, 2019
runrevmark deleted the bug-fix_lcb_varargs_test branch May 10, 2019 14:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL