VirtualBox

Ignore:
Timestamp:
Nov 9, 2022 9:00:05 PM (2 years ago)
Author:
vboxsync
Message:

ValKit/tdUnitTest1.py: Added a kludge for making tstAsmStructs work with in an asan build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py

    r97487 r97488  
    626626            self._figureVersion();
    627627            self._makeEnvironmentChanges();
     628
     629            # If this is an ASAN build and we're on linux, make sure we've got
     630            # libasan.so.N in the  LD_LIBRARY_PATH or stuff w/o a RPATH entry
     631            # pointing to /opt/VirtualBox will fail (like tstAsmStructs).
     632            if self.getBuildType() == 'asan'  and  utils.getHostOs() in ('linux',):
     633                sLdLibraryPath = '';
     634                if 'LD_LIBRARY_PATH' in os.environ:
     635                    sLdLibraryPath = os.environ['LD_LIBRARY_PATH'] + ':';
     636                sLdLibraryPath += self.oBuild.sInstallPath;
     637                os.environ['LD_LIBRARY_PATH'] = sLdLibraryPath;
     638
    628639            fRc = self._testRunUnitTests(None);
    629640
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette