The CommandLine class didn't construct command lines with empty arguments correctly (these need to be passed as empty quotes to be recognizable as an argument), fixed; added unit tests that exposes this bug; some minor cosmetic fixes
git-svn-id: file:///srv/devel/repo-conversion/nusu@154 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
ce9a6bc932
commit
839d46ecf1
6 changed files with 100 additions and 28 deletions
|
@ -43,18 +43,14 @@ namespace Nuclex.Support.Scheduling {
|
|||
/// <param name="inner">Preceding exception that has caused this exception</param>
|
||||
public AbortedException(string message, Exception inner) : base(message, inner) { }
|
||||
|
||||
#if !COMPACTFRAMEWORK
|
||||
|
||||
/// <summary>Initializes the exception from its serialized state</summary>
|
||||
/// <param name="info">Contains the serialized fields of the exception</param>
|
||||
/// <param name="context">Additional environmental informations</param>
|
||||
protected AbortedException(
|
||||
System.Runtime.Serialization.SerializationInfo info,
|
||||
System.Runtime.Serialization.StreamingContext context
|
||||
)
|
||||
: base(info, context) { }
|
||||
|
||||
#endif // !COMPACTFRAMEWORK
|
||||
) :
|
||||
base(info, context) { }
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -77,6 +77,7 @@ namespace Nuclex.Support.Scheduling {
|
|||
public GenericTimeSource(bool useStopwatch) {
|
||||
this.useStopwatch = useStopwatch;
|
||||
|
||||
// Update the lastCheckedTime and lastCheckedTicks fields
|
||||
checkForTimeAdjustment();
|
||||
}
|
||||
|
||||
|
@ -96,7 +97,7 @@ namespace Nuclex.Support.Scheduling {
|
|||
// See whether the system date/time have been adjusted while we were asleep.
|
||||
checkForTimeAdjustment();
|
||||
|
||||
// Now tell the caller whether his even was signalled
|
||||
// Now tell the caller whether his event was signalled
|
||||
return signalled;
|
||||
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace Nuclex.Support.Scheduling {
|
|||
/// </returns>
|
||||
/// <remarks>
|
||||
/// Depending on whether the system will provide notifications when date/time
|
||||
/// is adjusted, the time source will be forced to let thid method block for
|
||||
/// is adjusted, the time source will be forced to let this method block for
|
||||
/// less than the indicated time before returning a timeout in order to give
|
||||
/// the caller a chance to recheck the system time.
|
||||
/// </remarks>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue